package com.aya.aopx.invalid.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class TxFailService {

    private static final Logger logger = LoggerFactory.getLogger(TxFailService.class);

    @Transactional(rollbackFor = Exception.class)
    public void cat() {
        logger.info("tx stack trace, {}", new RuntimeException());
    }

}
